local skill = fk.CreateSkill{
    name = "roulette_telephone_skill",
}
Fk:loadTranslationTable{
    ["#roulette_telephone_skill"] = "是否使用 一次性手机，随机观看一颗子弹的类型",
    ["#RouletteTelephone"] = "枪内第 %arg 颗子弹是 %arg2",
    ["#RouletteTelephone2"] = "真遗憾",
}
skill:addEffect("cardskill",{
    prompt = "#roulette_telephone_skill",
    mod_target_filter = function(self, player, to_select)
        return type(Fk:currentRoom():getBanner("demons")) == "table"
    end,
    can_use = Util.CanUseToSelf,
    on_effect = function(self, room, effect)
        room:broadcastPlaySound("./packages/water_wegame/audio/effect/telephone")
        if #room:getBanner("demons") > 2 then
            local num = math.random(1,#room:getBanner("demons"))
            local logDemo = {"<font color='#0598BC'>空弹</font>","<font color='#CC3131'>实弹</font>"}
            local names = {"roulette_blank","roulette_bullet"}
            --[[room:sendLog{
                type = "#RouletteTelephone",
                arg = num,
                arg2 = logDemo[room:getBanner("demons")[num] + 1]
            }]]--
            local card = room:printCard(names[room:getBanner("demons")[num] + 1])
            room:viewCards(effect.from,{
                cards = {card.id},
                skill_name = skill.name,
                prompt = "#RouletteTelephone:::"..num..":"..logDemo[room:getBanner("demons")[num] + 1],
            })
        else
            room:sendLog{
                type = "#RouletteTelephone2",
            }
        end
    end,
})
return skill